all:
	g++ -c drpc_core.cpp
	ar rsv libdrpc_core.a drpc_core.o
	g++ netproto_cli.cpp -L./ -ldrpc_core -lpthread -ldl -lrt -lm -o cli_netproto
	g++ netproto_srv.cpp netproto_ctrl.cpp -L./ -ldrpc_core -lpthread -ldl -lrt -lm -o srv_netproto

.PHONY:clean

clean:
	rm -f *.a *.o srv_netproto cli_netproto
